import type { RouteRecordRaw } from 'vue-router'

const siteRoutes: RouteRecordRaw[] = [
  {
    path: '/auth',
    name: 'AuthConfig',
    component: () => import('@/views/authorize'),
    meta: {
      title: '授权管理',
      showPageHeader: true,
      showBack: false,
      currentActiveMenu: 'AuthConfig'
    }
  },
  {
    path: 'auth/:id',
    name: 'AuthDetail',
    meta: {
      title: '详情',
      parentTitle: '授权管理',
      showBack: true,
      showPageHeader: true,
      parentName: 'Auth',
      currentActiveMenu: 'AuthConfig'
    },
    component: () =>
      import('@/views/authorize/components/detail/AuthDetail.vue')
  }
]
export default siteRoutes
